Optimal. Leaf size=97 \[ -\frac{\left (a+b x^2\right )^{p+1} \left (c+d x^2\right )^q \left (\frac{b \left (c+d x^2\right )}{b c-a d}\right )^{-q} F_1\left (p+1;-q,1;p+2;-\frac{d \left (b x^2+a\right )}{b c-a d},\frac{b x^2+a}{a}\right )}{2 a (p+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0934395, antiderivative size = 97, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {446, 137, 136} \[ -\frac{\left (a+b x^2\right )^{p+1} \left (c+d x^2\right )^q \left (\frac{b \left (c+d x^2\right )}{b c-a d}\right )^{-q} F_1\left (p+1;-q,1;p+2;-\frac{d \left (b x^2+a\right )}{b c-a d},\frac{b x^2+a}{a}\right )}{2 a (p+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 446
Rule 137
Rule 136
Rubi steps
\begin{align*} \int \frac{\left (a+b x^2\right )^p \left (c+d x^2\right )^q}{x} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{(a+b x)^p (c+d x)^q}{x} \, dx,x,x^2\right )\\ &=\frac{1}{2} \left (\left (c+d x^2\right )^q \left (\frac{b \left (c+d x^2\right )}{b c-a d}\right )^{-q}\right ) \operatorname{Subst}\left (\int \frac{(a+b x)^p \left (\frac{b c}{b c-a d}+\frac{b d x}{b c-a d}\right )^q}{x} \, dx,x,x^2\right )\\ &=-\frac{\left (a+b x^2\right )^{1+p} \left (c+d x^2\right )^q \left (\frac{b \left (c+d x^2\right )}{b c-a d}\right )^{-q} F_1\left (1+p;-q,1;2+p;-\frac{d \left (a+b x^2\right )}{b c-a d},\frac{a+b x^2}{a}\right )}{2 a (1+p)}\\ \end{align*}
Mathematica [A] time = 0.0712278, size = 95, normalized size = 0.98 \[ \frac{\left (\frac{a}{b x^2}+1\right )^{-p} \left (a+b x^2\right )^p \left (\frac{c}{d x^2}+1\right )^{-q} \left (c+d x^2\right )^q F_1\left (-p-q;-p,-q;-p-q+1;-\frac{a}{b x^2},-\frac{c}{d x^2}\right )}{2 (p+q)} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.055, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( b{x}^{2}+a \right ) ^{p} \left ( d{x}^{2}+c \right ) ^{q}}{x}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b x^{2} + a\right )}^{p}{\left (d x^{2} + c\right )}^{q}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (b x^{2} + a\right )}^{p}{\left (d x^{2} + c\right )}^{q}}{x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b x^{2} + a\right )}^{p}{\left (d x^{2} + c\right )}^{q}}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]